package com.snu.liwei.lyl_api.service;

import com.snu.liwei.lyl_api.entity.Video;
import com.snu.liwei.lyl_api.mapper.VideoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VideoService {

    @Autowired
    VideoMapper videoMapper;

    //按照视频关键字返回所有符合条件的视频
    public List<Video> getVideoByName(String videoName){
        return videoMapper.getVideoByName(videoName);
    }

    //按照视频的风格videosign返回所有符合条件的视频
    public List<Video> getVideoBySign(String videoSign){
        return videoMapper.getVideoBySign(videoSign);
    }


}
